<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
//Route::post('user/login', 'UserController@login');
Route::post('user/old_login', 'Admin\LoginController@oldLogin');
Route::post('user/login', 'Admin\LoginController@login');
Route::post('user/loginphone', 'Admin\LoginController@loginphone');
Route::post('user/bind_phone', 'Admin\LoginController@binPhone');
Route::prefix('user')->middleware('auth:sanctum')->group(function(){
    Route::post('list', 'UserController@list');
    Route::post('get', 'UserController@get');
    Route::post('edit', 'UserController@edit');
    Route::post('update', 'UserController@update');
    Route::post('resest_pwd', 'UserController@resetPwd');
});
Route::prefix('manager/order')->middleware('auth:sanctum')->group(function(){
    Route::post('list', 'OrderController@list');

    Route::post('edit', 'OrderController@edit');
    //获取送取车列表
    Route::post('fetch_return', 'OrderController@fetchOrReturnCar');
    //更新是否加班
    Route::post('update_over_time', 'OrderController@updateOverTime');


});

